home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20021006-20030409 / 000183_ebh@burntmail.com_Tue Dec 17 13:49:12 EST 2002.msg < prev    next >
Text File  |  2020-01-01  |  2KB  |  46 lines

  1. Article: 13965 of comp.protocols.kermit.misc
  2. Path: newsmaster.cc.columbia.edu!panix!bloom-beacon.mit.edu!newsfeed.stanford.edu!postnews1.google.com!not-for-mail
  3. From: ebh@burntmail.com (EBH)
  4. Newsgroups: comp.protocols.kermit.misc
  5. Subject: Control characters with minput
  6. Date: 17 Dec 2002 10:34:42 -0800
  7. Organization: http://groups.google.com/
  8. Lines: 28
  9. Message-ID: <6b84683a.0212171034.6c28e6fe@posting.google.com>
  10. NNTP-Posting-Host: 63.127.208.96
  11. Content-Type: text/plain; charset=ISO-8859-1
  12. Content-Transfer-Encoding: 8bit
  13. X-Trace: posting.google.com 1040150082 14358 127.0.0.1 (17 Dec 2002 18:34:42 GMT)
  14. X-Complaints-To: groups-abuse@google.com
  15. NNTP-Posting-Date: 17 Dec 2002 18:34:42 GMT
  16. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:13965
  17.  
  18. I recently upgraded from kermit version 6.0.192 to kermit version
  19. 8.0.206, and it seems to me that minput functions differently. I have
  20. a kermit script that waits for an ENQ from the remote computer nad
  21. sends a transaction is response to the ENQ.
  22.  
  23. I wrote the following code to search for ENQ or EOT and move to the
  24. correct part of the script accordingly:
  25.  
  26. minput 60 \005 \004
  27. switch \v(minput) {
  28. :0, echo {*** No response received, redialing ***}, -
  29.     goto RESTART, break
  30. :1, echo {Transmitting \%c - \%k:\%m}, -
  31.     goto ENQ, break
  32. :2, echo {*** EOT received, redialing ***}, -
  33.     goto RESTART, break
  34. :default, echo {Invalid resonse: \v(input), sending NAK}, -
  35.     increment num'enq, output \021, goto START
  36. }
  37.  
  38. This worked fine in kermit 6.0.192, but in kermit 8.0.206 even though
  39. I get a Ctrl-E and the command "echo \fcode(\v(input))" prints 5, but
  40. the switch always executes the code for 0. And when I issue "echo
  41. \v(minput)" it returns 0.
  42.  
  43. So, the question is as follows: Did this cahnge in kermit 7 or 8. And
  44. if it did, how can use minput to search for multiple control
  45. characters?
  46.